/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kz.epam.homedevices.lighting;

import kz.epam.homedevices.ElectricalDevice;

/**
 *
 * @author Knoppix
 */
public class Lighting extends ElectricalDevice {

    private double luminousEfficiency;
    private LightingType type;

    public Lighting() {
    }

    public Lighting(LightingType type, String maker, Double cardinality, boolean powerOn, double luminousEfficiency) {
        super(maker, cardinality, powerOn);
        this.luminousEfficiency = luminousEfficiency;
        this.type = type;
    }

    public double getLuminousEfficiency() {
        return luminousEfficiency;
    }

    public void setLuminousEfficiency(double luminousEfficiency) {
        this.luminousEfficiency = luminousEfficiency;
    }

    public LightingType getType() {
        return type;
    }

    public void setType(LightingType type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "\n" + this.type.toString() + " {"
                + super.toString()
                + ", Luminous Efficiency: " + this.luminousEfficiency + "lm*W}";
    }
}
